package com.shuai.baibi.model.xunfei.response;


import com.shuai.baibi.model.xunfei.response.header.ResHeader;
import com.shuai.baibi.model.xunfei.response.payload.Payload;

import java.util.StringJoiner;

/**
 * 接口响应对象
 *
 * @author Linzj
 * @date 2023/10/19/019 16:52
 */
public class Result {

    private ResHeader resHeader;
    private Payload payload;

    public void setHeader(ResHeader resHeader) {
        this.resHeader = resHeader;
    }

    public ResHeader getHeader() {
        return resHeader;
    }

    public void setPayload(Payload payload) {
        this.payload = payload;
    }

    public Payload getPayload() {
        return payload;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", Result.class.getSimpleName() + "[", "]")
                .add("header=" + resHeader)
                .add("payload=" + payload)
                .toString();
    }
}